﻿using EfSandbox.Entities.Final.Common;
using System.Collections.Generic;

namespace EfSandbox.Entities.Final.Eod {
    public class Exchange {
        public Exchange() {
            Symbols = new List<Symbol>();
        }
        public int ExchangeId { set; get; }
        public string ExchangeCode { set; get; }
        public string ExchangeName { set; get; }
        public string ExchangeLable {
            get {
                return string.Format("{0} - {1}", ExchangeCode, ExchangeName);
            }
        }
        public string ExchangeLable2 {
            get {
                return string.Format("{0} ({1})", ExchangeName, ExchangeCode);
            }
        }
        public bool? HasIntraDayProduct { set; get; }
        public bool? IsActive { set; get; }
        public TimeZone TimeZone { set; get; }
        public int? TimeZoneId { set; get; }
        public virtual ICollection<Symbol> Symbols { set; get; }
        public int? CurrencyId { set; get; }
        public Currency Currency { set; get; }
        public int? CountryId { set; get; }
        public Country Country { set; get; }
        public string ExchangeSuffix { set; get; }

  }
}
